/**
 * 2010(c) Copyright Oceansoft Information System Co.,LTD. All rights reserved.
 * <p>
 * Compile: JDK 1.6+
 * <p>
 * 版权所有(C)：江苏欧索软件有限公司
 * <p>
 * 公司名称：江苏欧索软件有限公司
 * <p>
 * 公司地址：中国苏州科技城青山路1号
 * <p>
 * 网址: http://www.oceansoft.com.cn
 * <p>
 * 版本: 苏州公安统一用户管理平台1.0
 * <p>
 * 作者: 090922(陈伟)
 * <p>
 * 文件名:Message.java
 * <p>
 * 类产生时间: 2012-6-8 上午10:52:06
 * <p>
 * 负责人: 090922(陈伟)
 * <p>
 * Email:javacspring@gmail.com
 * <p>
 * 所在组 : 苏州公安统一用户管理平台
 * <p>
 * 所在部门: 电信/国土——技术二部
 * <p>
 * <p>
 */
package com.oceansoft.core.domain;

import java.util.Date;
import java.util.UUID;

import com.oceansoft.core.common.constant.Constant;

/**
 * 系统消息
 * 
 * @author chenw
 * 
 */
public class Message {
	private String id = UUID.randomUUID().toString();
	private String title = "操作成功";
	private String body = "操作成功";
	private Object extentData;
	private Date timestamp = new Date();
	private int status = Constant.RESULT_SUCC;
	private Throwable throwable;

	public Message() {
		super();
	}

	public Message(String body) {
		super();
		this.body = body;
	}

	public Message(String title, String body) {
		super();
		this.title = title;
		this.body = body;
	}

	public Message(String body, int status) {
		super();
		this.body = body;
		this.status = status;
	}

	public Message(String title, String body, int status) {
		super();
		this.title = title;
		this.body = body;
		this.status = status;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Throwable getThrowable() {
		return throwable;
	}

	public void setThrowable(Throwable throwable) {
		this.throwable = throwable;
	}

	public Object getExtentData() {
		return extentData;
	}

	public void setExtentData(Object extentData) {
		this.extentData = extentData;
	}
}
